Route::post('user/profile', function () {
// Update the user's profile...
return redirect('dashboard')->with('status', 'Profile updated!');
});
return redirect()->back()->withInput();
// For a route with the following URI: profile/{id}
return redirect()->route('profile', [$user]);
// For a route with the following URI: profile/{id}
return redirect()->route('profile', ['id' => 1]);